package com.gitee.wsl.android.ui.api

import android.graphics.Canvas

interface RenderAble {

     var isVisible:Boolean

    fun renderItem(canvas: Canvas)

    fun render(canvas: Canvas){
        if(isVisible)
          renderItem(canvas)
    }
}